package com.gufe.mapper.admin.mmp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gufe.entity.Notice;
import com.gufe.vo.NoticeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IndexNoticeMapper extends BaseMapper<Notice> {


    /**
     * 查询所有通知信息
     * @return
     */
    @Select("select * from notice order by updated_at desc ")
    List<NoticeVO> getNotices();
}
